﻿Public Class FormMain


    Private Sub ButtonItem_DanhMucSach_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonItem_DanhMucSach.Click
        Dim frm As New FormSach()
        frm.TopLevel = False
        frm.Dock = DockStyle.Fill
        frm.FormBorderStyle = Windows.Forms.FormBorderStyle.None
        PanelEx_Main.Controls.Clear()
        PanelEx_Main.Controls.Add(frm)
        frm.Show()
    End Sub

    Private Sub ButtonItem_TheLoaiSach_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonItem_TheLoaiSach.Click
        Dim frm As New FormTheLoai()
        frm.TopLevel = False
        frm.Dock = DockStyle.Fill
        frm.FormBorderStyle = Windows.Forms.FormBorderStyle.None
        PanelEx_Main.Controls.Clear()
        PanelEx_Main.Controls.Add(frm)
        frm.Show()
    End Sub

    Private Sub ButtonItem_HoaDonChiTiet_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonItem_HoaDonChiTiet.Click
        Dim frm As New FormHoaDon()
        frm.TopLevel = False
        frm.Dock = DockStyle.Fill
        frm.FormBorderStyle = Windows.Forms.FormBorderStyle.None
        PanelEx_Main.Controls.Clear()
        PanelEx_Main.Controls.Add(frm)
        frm.Show()
    End Sub

    Private Sub ButtonItem_KhachHang_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonItem_KhachHang.Click
        Dim frm As New FormKhachHang
        frm.TopLevel = False
        frm.Dock = DockStyle.Fill
        frm.FormBorderStyle = Windows.Forms.FormBorderStyle.None
        PanelEx_Main.Controls.Clear()
        PanelEx_Main.Controls.Add(frm)
        frm.Show()
    End Sub

    Private Sub ButtonItem_PhieuThu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonItem_PhieuThu.Click
        Dim frm As New FormPhieuThu
        frm.TopLevel = False
        frm.Dock = DockStyle.Fill
        frm.FormBorderStyle = Windows.Forms.FormBorderStyle.None
        PanelEx_Main.Controls.Clear()
        PanelEx_Main.Controls.Add(frm)
        frm.Show()
    End Sub
End Class
